# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=iwgtk
pkgver=0.7
pkgrel=0
pkgdesc="graphical wifi management utility for iwd"
url="https://github.com/J-Lentz/iwgtk"
arch="all !s390x !riscv64" # blocked by gtk4.0
license="GPL-3-or-later"
options="!check" # no tests
makedepends="gtk4.0-dev libqrencode-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/J-Lentz/iwgtk/archive/v$pkgver.tar.gz"

build() {
	make PREFIX=/usr
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
	rm -rf "$pkgdir"/usr/lib/systemd
}

sha512sums="
da40aa66985004e7917fac15629d36b9b5fc2e1d56fda1544567afdcc28ac5c65c125b35ffe6751b66eb0e3c71489c383be017a44a4cfef065c8859f15b7de74  iwgtk-0.7.tar.gz
"
